<?php
/**
 * @var $baby
 * @var $primarySchool
 * @var $juniorHighSchool
 * @var $seniorHighSchool
 * @var $language
 * @var $strongPoint
 * @var $province
 * @var $cities
 * @var $latestNews
 * @var $latestSchool
 */
?>
<div class="zp_index_banner mainWith clearFix">
    <div class="zp_index_banner_left">
        <h2 class="zp_index_banner_left_header margin0">
            知名学校招聘
        </h2>
        <div class="zp_index_banner_left_content clearFix">
            <?php foreach ($latestSchool as $item){
                ?>
                <div class="zp_index_content_detail">
                    <a href="/school/<?php echo $item->school->id?>.html">
                        <div class="zp_index_content_detail_header" title="<?php echo $item->school->title?>">
                            <?php echo $item->school->title?>
                        </div>
                        <div class="zp_index_content_detail_content" title="<?php echo $item->name?>">
                            诚聘：<?php echo $item->name?>
                        </div>
                    </a>
                </div>
            <?php
            }?>
            <?php if ($latestSchool->count() === 0){
                ?>
                <p style="padding: 15px 0 15px 20px;">暂无数据</p>
            <?php
            }?>
        </div>
    </div>
    <div class="zp_index_banner_right">
        <div class="zp_index_banner_right_header">
            最新招聘
        </div>
        <div class="zp_index_banner_right_content">
            <?php foreach ($latestNews as $item){
                ?>
                <div class="zp_index_banner_right_list clearFix">
                    <a href="/zp/<?php echo $item->id?>.html" style="color: #3385ff">
                        <div class="zp_index_banner_right_content_word">
                            <h4 title="<?php echo $item->title?>"><?php echo $item->title?></h4>
                        </div>
                    </a>
                </div>
            <?php
            }?>
            <!-- 测试用代码 可删除 -->
             <?php foreach ($latestNews_bottom as $item){
                ?>
                <div class="zp_index_banner_right_list clearFix">
                    <a href="/zp/<?php echo $item->id?>.html" style="color: #3385ff">
                        <div class="zp_index_banner_right_content_word">
                            <h4 title="<?php echo $item->title?>"><?php echo $item->title?></h4>
                        </div>
                    </a>
                </div>
            <?php
            }?>

            <!-- 测试用代码 end-->
        </div>
    </div>
</div>
<div class="mainContent mainWith clearFix index_wrap_zp">
    <div class="part">
        <div class="partHeader clearFix">
            <h2 class="margin0 p-h2">幼儿园教师招聘</h2>
            <span class="moreInfo">
                <a target="_blank" href="/jobs/youeryuan">更多</a>
            </span>
        </div>
        <div class="partContent">
            <ul class="clearFix">
                <?php foreach ($baby as $item) {
                    ?>
                    <li>
                        <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>">
                            <span class="jobPosition"><?php echo $item->name;?></span>
                            <span class="publishDate"><?php echo explode(' ',$item->publish_date)[0]?></span>
                        </a>
                    </li>
                <?php
                } ?>
                <?php
                    if( $baby->count() === 0){
                        ?>
                        <li class="text-center">暂无数据</li>
                <?php
                    }
                ?>
            </ul>
        </div>
    </div>
    <div class="part">
        <div class="partHeader clearFix">
            <h2 class="margin0 p-h2">小学教师招聘</h2>
            <span class="moreInfo">
                <a target="_blank" href="/jobs/xiaoxue">更多</a>
            </span>
        </div>
        <div class="partContent">
            <ul class="clearFix">
                <?php foreach ($primarySchool as $item) {
                    ?>
                    <li>
                        <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>">
                            <span class="jobPosition"><?php echo $item->name;?></span>
                            <span class="publishDate"><?php echo explode(' ',$item->publish_date)[0]?></span>
                        </a>
                    </li>
                    <?php
                }?>
                <?php
                if( $primarySchool->count() === 0){
                    ?>
                    <li class="text-center">暂无数据</li>
                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
    <div class="part">
        <div class="partHeader clearFix">
            <h2 class="margin0 p-h2">初中教师招聘</h2>
            <span class="moreInfo">
                <a target="_blank" href="/jobs/chuzhong">更多</a>
            </span>
        </div>
        <div class="partContent">
            <ul class="clearFix">
                <?php foreach ($juniorHighSchool as $item) {
                    ?>
                    <li>
                        <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>">
                            <span class="jobPosition"><?php echo $item->name;?></span>
                            <span class="publishDate"><?php echo explode(' ',$item->publish_date)[0]?></span>
                        </a>
                    </li>
                    <?php
                }?>
                <?php
                if( $juniorHighSchool->count() === 0){
                    ?>
                    <li class="text-center">暂无数据</li>
                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
    <div class="part">
        <div class="partHeader clearFix">
            <h2 class="margin0 p-h2">高中教师招聘</h2>
            <span class="moreInfo">
                <a target="_blank" href="/jobs/gaozhong">更多</a>
            </span>
        </div>
        <div class="partContent">
            <ul class="clearFix">
                <?php foreach ($seniorHighSchool as $item) {
                    ?>
                    <li>
                        <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>">
                            <span class="jobPosition"><?php echo $item->name;?></span>
                            <span class="publishDate"><?php echo explode(' ',$item->publish_date)[0]?></span>
                        </a>
                    </li>
                    <?php
                }?>
                <?php
                if( $seniorHighSchool->count() === 0){
                    ?>
                    <li class="text-center">暂无数据</li>
                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
    <div class="part">
        <div class="partHeader clearFix">
            <h2 class="margin0 p-h2">语言培训教师招聘</h2>
            <span class="moreInfo">
                <a target="_blank" href="/jobs/yuyuanpeixun">更多</a>
            </span>
        </div>
        <div class="partContent">
            <ul class="clearFix">
                <?php foreach ($language as $item) {
                    ?>
                    <li>
                        <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>">
                            <span class="jobPosition"><?php echo $item->name;?></span>
                            <span class="publishDate"><?php echo explode(' ',$item->publish_date)[0]?></span>
                        </a>
                    </li>
                    <?php
                }?>
                <?php
                if( $language->count() === 0){
                    ?>
                    <li class="text-center">暂无数据</li>
                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
    <div class="part">
        <div class="partHeader clearFix">
            <h2 class="margin0 p-h2">特长培训教师招聘</h2>
            <span class="moreInfo">
                <a target="_blank" href="/jobs/techangpeixun">更多</a>
            </span>
        </div>
        <div class="partContent">
            <ul class="clearFix">
                <?php foreach ($strongPoint as $item) {
                    ?>
                    <li>
                        <a href="/jobs/<?php echo $item->category->name_py?>/<?php echo $item->id?>.html" title="<?php echo $item->name?>">
                            <span class="jobPosition"><?php echo $item->name;?></span>
                            <span class="publishDate"><?php echo explode(' ',$item->publish_date)[0]?></span>
                        </a>
                    </li>
                    <?php
                }?>
                <?php
                if( $strongPoint->count() === 0){
                    ?>
                    <li class="text-center">暂无数据</li>
                    <?php
                }
                ?>
            </ul>
        </div>
    </div>
</div>